.chatContainer {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  position: relative;
  
  // 添加半透明背景层
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 20%, rgba(0, 255, 0, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(0, 255, 0, 0.06) 0%, transparent 50%),
      radial-gradient(circle at 40% 60%, rgba(0, 255, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }
  
  // 添加右上角图标背景
  &::after {
    content: '💬';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 200px;
    opacity: 0.03;
    color: #00ff00;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px);
    animation: iconFloat 6s ease-in-out infinite;
  }
}

.chatCard {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(26, 26, 26, 0.85) !important;
  border: 1px solid rgba(0, 255, 0, 0.2) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 255, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  
  // 添加内部发光效果
  &::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), transparent, rgba(0, 255, 0, 0.1));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 4s ease-in-out infinite alternate;
  }
  
  // 添加右上角装饰性图标
  &::after {
    content: '🤖';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.05;
    color: #00ff00;
    z-index: 0;
    pointer-events: none;
    filter: blur(0.5px);
    animation: iconPulse 4s ease-in-out infinite;
  }
  
  :global(.ant-card-body) {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
  }
}

.messagesContainer {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: #555 #2a2a2a;
  background: rgba(26, 26, 26, 0.3);
  border-radius: 16px 16px 0 0;
  position: relative;
  
  // 添加消息区域右上角小图标
  &::before {
    content: '💭';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    opacity: 0.04;
    color: #00ff00;
    z-index: 0;
    pointer-events: none;
    filter: blur(0.3px);
    animation: iconRotate 8s linear infinite;
  }
  
  // 自定义滚动条样式
  &::-webkit-scrollbar {
    width: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.5);
    border-radius: 4px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    
    &:hover {
      background: rgba(0, 255, 0, 0.5);
    }
  }
}

.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  position: relative;
  
  // 添加空状态背景图标
  &::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    opacity: 0.02;
    color: #00ff00;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px);
    animation: iconGlow 5s ease-in-out infinite;
  }
  
  .emptyIcon {
    font-size: 64px;
    color: #00ff00;
    margin-bottom: 16px;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.3));
    position: relative;
    z-index: 1;
  }
  
  .emptyText {
    font-size: 18px;
    color: #999 !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    position: relative;
    z-index: 1;
  }
}

.messageItem {
  margin-bottom: 24px;
  animation: messageSlideIn 0.3s ease-out;
}

.messageContent {
  max-width: 80%;
}

.messageHeader {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.messageAvatar {
  background: rgba(51, 51, 51, 0.8) !important;
  border: 1px solid rgba(85, 85, 85, 0.5);
  backdrop-filter: blur(10px);
  
  :global(.anticon) {
    color: #ccc;
  }
}

.messageRole {
  font-weight: 600;
  color: #ccc !important;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.messageTime {
  color: #666 !important;
  font-size: 12px;
  margin-left: auto;
  opacity: 0.8;
}

.messageText {
  background: rgba(42, 42, 42, 0.8);
  padding: 12px 16px;
  border-radius: 12px;
  color: #e0e0e0 !important;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
  border: 1px solid rgba(68, 68, 68, 0.5);
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  
  &::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), transparent);
    border-radius: 12px;
    opacity: 0.3;
    z-index: -1;
  }
}

.userMessage {
  display: flex;
  justify-content: flex-end;
  
  .messageContent {
    align-items: flex-end;
  }
  
  .messageHeader {
    flex-direction: row-reverse;
    
    .messageTime {
      margin-left: 0;
      margin-right: auto;
    }
  }
  
  .messageText {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.9), rgba(0, 204, 0, 0.9));
    color: #000000 !important;
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 
      0 4px 12px rgba(0, 255, 0, 0.2),
      0 0 0 1px rgba(0, 255, 0, 0.1);
    
    &::before {
      background: linear-gradient(45deg, rgba(0, 255, 0, 0.3), rgba(0, 204, 0, 0.3));
      opacity: 0.4;
    }
  }
  
  .messageAvatar {
    background: rgba(0, 255, 0, 0.9) !important;
    border-color: rgba(0, 255, 0, 0.5);
    
    :global(.anticon) {
      color: #000000;
    }
  }
}

.assistantMessage {
  display: flex;
  justify-content: flex-start;
  
  .messageAvatar {
    background: rgba(26, 26, 26, 0.8) !important;
    border-color: rgba(0, 255, 0, 0.5);
    
    :global(.anticon) {
      color: #00ff00;
    }
  }
}

.loadingIcon {
  margin-left: 8px;
}

.cursor {
  animation: blink 1s infinite;
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.thinkingIndicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  
  :global(.ant-spin) {
    :global(.ant-spin-dot) {
      font-size: 16px;
      
      :global(.ant-spin-dot-item) {
        background-color: #00ff00;
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
    }
  }
}

.thinkingText {
  color: #00ff00 !important;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
  animation: thinkingPulse 2s ease-in-out infinite;
}

.inputContainer {
  border-top: 1px solid rgba(51, 51, 51, 0.5);
  padding: 24px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(10px);
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
  }
  
  // 添加输入区域右上角图标
  &::after {
    content: '⌨️';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    opacity: 0.04;
    color: #00ff00;
    z-index: 0;
    pointer-events: none;
    filter: blur(0.2px);
    animation: iconBounce 3s ease-in-out infinite;
  }
}

.inputWrapper {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
}

.messageInput {
  flex: 1;
  background: rgba(42, 42, 42, 0.8) !important;
  border: 1px solid rgba(68, 68, 68, 0.5) !important;
  border-radius: 18px !important;
  color: #e0e0e0 !important;
  resize: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 120px !important;
  max-height: 200px !important;
  padding: 20px 24px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  
  &:focus {
    border-color: rgba(0, 255, 0, 0.5) !important;
    box-shadow: 
      0 0 0 2px rgba(0, 255, 0, 0.2) !important,
      0 8px 25px rgba(0, 255, 0, 0.15) !important;
    background: rgba(42, 42, 42, 0.95) !important;
    transform: translateY(-2px);
  }
  
  &::placeholder {
    color: #777 !important;
    font-size: 16px !important;
  }
  
  :global(.ant-input) {
    background: transparent !important;
    color: #e0e0e0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  
  // 覆盖字数统计的可读性
  :global(.ant-input-textarea-show-count) {
    position: relative;
  }

  :global(.ant-input-data-count) {
    color: #d9fbd9 !important; // 亮绿色偏白，和深色背景对比更好
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    background: transparent !important;
  }
}

.inputActions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 160px;
  justify-content: center;
  align-self: stretch; // 保证与输入框等高
}

.sendButton {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.95), rgba(0, 204, 0, 0.95)) !important;
  border: none !important;
  color: #000000 !important;
  border-radius: 18px !important;
  height: 100% !important;
  padding: 0 32px;
  font-weight: 700;
  font-size: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(0, 255, 0, 0.3),
    0 0 0 2px rgba(0, 255, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  
  // 按钮内部发光效果
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100% !important; // 与输入框等高
  }
  
  // 添加内部装饰性光效
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
  }
  
  &:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
      0 12px 40px rgba(0, 255, 0, 0.4),
      0 0 0 3px rgba(0, 255, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    &::before {
      left: 100%;
    }
    
    &::after {
      width: 200px;
      height: 200px;
      opacity: 1;
    }
  }
  
  &:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
      0 6px 20px rgba(0, 255, 0, 0.3),
      0 0 0 2px rgba(0, 255, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  &:disabled {
    background: rgba(68, 68, 68, 0.8) !important;
    color: #666 !important;
    transform: none;
    box-shadow: none;
    
    &::before {
      display: none;
    }
  }
}

.stopButton {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.95), rgba(204, 51, 51, 0.95)) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  height: 100% !important;
  padding: 0 32px;
  font-weight: 700;
  font-size: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(255, 68, 68, 0.3),
    0 0 0 2px rgba(255, 68, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  
  // 按钮内部发光效果
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100% !important; // 与输入框等高
  }
  
  // 添加内部装饰性光效
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
  }
  
  &:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
      0 12px 40px rgba(255, 68, 68, 0.4),
      0 0 0 3px rgba(255, 68, 68, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    &::before {
      left: 100%;
    }
    
    &::after {
      width: 200px;
      height: 200px;
      opacity: 1;
    }
  }
  
  &:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
      0 6px 20px rgba(255, 68, 68, 0.3),
      0 0 0 2px rgba(255, 68, 68, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.chatActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.clearButton {
  color: #999 !important;
  border: none !important;
  background: rgba(68, 68, 68, 0.3) !important;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  
  // 按钮内部装饰
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  &:hover {
    color: #00ff00 !important;
    background: rgba(0, 255, 0, 0.1) !important;
    box-shadow: 
      0 4px 12px rgba(0, 255, 0, 0.2),
      0 0 0 1px rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
    
    &::before {
      opacity: 1;
    }
  }
  
  &:active {
    transform: translateY(0);
  }
  
  &:disabled {
    color: #555 !important;
    background: rgba(68, 68, 68, 0.2) !important;
    transform: none;
    box-shadow: none;
    
    &::before {
      display: none;
    }
  }
}

// 输入提示信息
.inputHint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 12px;
  margin-top: 8px;
  
  .hintIcon {
    color: #00ff00;
    opacity: 0.6;
  }
  
  .hintText {
    color: #777 !important;
  }
}

// 动画定义
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes borderGlow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

// 新增图标动画
@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.05;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.08;
  }
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes iconGlow {
  0%, 100% {
    opacity: 0.02;
    filter: blur(1px);
  }
  50% {
    opacity: 0.04;
    filter: blur(0.5px);
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes thinkingPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .chatContainer {
    height: calc(100vh - 120px);
    
    &::after {
      font-size: 120px;
      top: -10px;
      right: -10px;
    }
  }
  
  .chatCard::after {
    font-size: 50px;
    top: 10px;
    right: 10px;
  }
  
  .messagesContainer {
    padding: 16px;
    
    &::before {
      font-size: 25px;
      top: 5px;
      right: 5px;
    }
  }
  
  .emptyState::before {
    font-size: 200px;
  }
  
  .messageContent {
    max-width: 90%;
  }
  
  .inputContainer {
    padding: 16px;
    
    &::after {
      font-size: 20px;
      top: 5px;
      right: 5px;
    }
  }
  
  .inputWrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .inputActions {
    justify-content: center;
    min-width: auto;
  }
  
  .sendButton,
  .stopButton {
    width: 100%;
    height: 100px;
    font-size: 20px;
    border-radius: 14px !important;
  }
  
  .messageInput {
    min-height: 100px !important;
    max-height: 160px !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
  }
  
  .chatActions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .inputHint {
    justify-content: center;
    text-align: center;
  }
  
  .clearButton {
    width: 100%;
    height: 40px;
  }
}

// 图片容器样式
.imageContainer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imageWrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 255, 0, 0.1);
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), transparent);
    border-radius: 12px;
    opacity: 0.3;
    z-index: -1;
  }
}

.generatedImage {
  width: 100%;
  max-width: 512px;
  height: auto;
  border-radius: 8px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 255, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  
  &:hover {
    transform: scale(1.02);
    box-shadow: 
      0 12px 35px rgba(0, 0, 0, 0.4),
      0 0 0 2px rgba(0, 255, 0, 0.2);
  }
  
  // 自定义Image组件样式
  :global(.ant-image) {
    display: block;
    border-radius: 8px;
    overflow: hidden;
  }
  
  :global(.ant-image-img) {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  :global(.ant-image-mask) {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
    
    &:hover {
      background: rgba(0, 0, 0, 0.7);
    }
  }
  
  :global(.ant-image-mask-info) {
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  }
}

.imagePreviewMask {
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  
  &:hover {
    background: rgba(0, 0, 0, 0.7) !important;
  }
  
  :global(.ant-image-mask-info) {
    color: #00ff00 !important;
    font-weight: 600 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5) !important;
  }
}

.imagePlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 8px;
  color: #ccc;
  font-size: 14px;
  
  :global(.ant-spin) {
    :global(.ant-spin-dot) {
      :global(.ant-spin-dot-item) {
        background-color: #00ff00;
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
      }
    }
  }
  
  span {
    color: #999;
    font-size: 12px;
  }
}

.imageInfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(68, 68, 68, 0.3);
  backdrop-filter: blur(5px);
}

.imagePrompt {
  color: #ccc !important;
  font-size: 13px !important;
  line-height: 1.5;
  word-wrap: break-word;
  
  strong {
    color: #00ff00 !important;
    font-weight: 600;
  }
}

// 响应式设计中的图片样式
@media (max-width: 768px) {
  .imageWrapper {
    padding: 12px;
  }
  
  .generatedImage {
    max-width: 100%;
  }
  
  .imageInfo {
    padding: 8px;
  }
  
  .imagePrompt {
    font-size: 12px !important;
  }
}


.quickActionsBar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 16px 0 16px;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.quickGroup {
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(0, 255, 0, 0.1);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.quickGroupHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.quickGroupIcon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(0, 255, 0, 0.3));
}

.quickGroupTitle {
  font-size: 14px;
  font-weight: 700;
  color: #00ff00;
  letter-spacing: 0.5px;
}

.quickItems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quickItem {
  border: 1px solid rgba(0, 255, 0, 0.2) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  color: #e0e0e0 !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
  font-size: 12px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.08);

  &:hover {
    color: #000 !important;
    background: rgba(0, 255, 0, 0.9) !important;
    border-color: rgba(0, 255, 0, 0.5) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 255, 0, 0.25);
  }

  &:active {
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .quickActionsBar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .quickActionsBar {
    grid-template-columns: 1fr;
    padding: 12px 12px 0 12px;
  }

  .quickGroupTitle {
    font-size: 13px;
  }

  .quickItem {
    font-size: 12px !important;
  }
}



.historyToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.12);
  background: rgba(26, 26, 26, 0.5);
  border-radius: 16px 16px 0 0;
  position: sticky;
  top: 0;
  z-index: 2;

  .toolbarLeft {
    display: flex;
    gap: 12px;
  }

  .toolbarRight {
    display: flex;
    align-items: center;
    gap: 8px;

    .toolbarLabel {
      color: #9eeea0 !important;
      font-size: 13px;
      text-shadow: 0 0 6px rgba(0, 255, 0, 0.25);
    }
  }
}

.historyDrawer {
  :global(.ant-drawer-header) {
    background: rgba(26, 26, 26, 0.85);
    border-bottom: 1px solid rgba(0, 255, 0, 0.12);
  }
  :global(.ant-drawer-body) {
    background: rgba(18, 18, 18, 0.9);
  }

  /* 统一抽屉内的文字与组件配色（暗色背景更易读） */
  :global(.ant-drawer-title) {
    color: #d8ffe0 !important;
  }
  :global(.ant-drawer-close) {
    color: #bfffd1 !important;
  }

  /* 列表项暗色适配与悬停反馈 */
  :global(.ant-list .ant-list-item) {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 0, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
  }
  :global(.ant-list .ant-list-item:hover) {
    background: rgba(0, 255, 0, 0.06);
    border-color: rgba(0, 255, 0, 0.2);
  }

  /* 列表主标题默认是黑色，强制为浅色以适配暗背景 */
  :global(.ant-list-item-meta-title) {
    color: #e6ffe6 !important;
  }
  /* 副标题/描述颜色更柔和一些 */
  :global(.ant-list-item-meta-description) {
    color: #cfe9cf !important;
  }

  /* 链接按钮的颜色与主题统一 */
  :global(.ant-btn-link) {
    color: #9eeea0 !important;
  }
  :global(.ant-btn-link:hover) {
    color: #c2ffc4 !important;
  }

  /* 空状态描述颜色 */
  :global(.ant-empty-description) {
    color: #aab3aa !important;
  }

  /* 分页颜色适配 */
  :global(.ant-pagination .ant-pagination-item a) {
    color: #cfe9cf !important;
  }
  :global(.ant-pagination .ant-pagination-item-active) {
    border-color: rgba(0, 255, 0, 0.35);
  }
  :global(.ant-pagination .ant-pagination-item-active a) {
    color: #e6ffe6 !important;
  }
}

/* 历史条目内容保持高对比度 */
.historyItemContent {
  color: #e7ffe7 !important;
}

.historyHeader {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.historyListWrapper {
  min-height: 200px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;

  &::-webkit-scrollbar {
    width: 6px;
  }
  &::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.25);
    border-radius: 4px;
  }
}

.historyItemContent {
  color: #cfcfcf !important;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.historyPagination {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .quickActionsBar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .quickActionsBar {
    grid-template-columns: 1fr;
    padding: 12px 12px 0 12px;
  }

  .quickGroupTitle {
    font-size: 13px;
  }

  .quickItem {
    font-size: 12px !important;
  }
}


